package mygang.dao;

import mygang.model.User;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 */
public class AuthenticationDAOImpl extends AbstractDAO implements AuthenticationDAO {

    @Override
    public User findUserByLogin(String login) {
        return (User) getHibernateTemplate().findByNamedParam("from User where login like :login and isActive = true", "login", login).get(0);
    }
    
}
